import { defineStore } from "pinia"
import { ref } from "vue"

export default defineStore('users', () => {
    //声明用户信息的store
    let userInfo = ref({})
    // 用户的按钮权限
    let permission = ref({})
    // 定义面包屑数据
    let breadCrumbList = ref([])
    // 声明学生信息的store
    let studentInfo = ref({})
    return { userInfo,permission,breadCrumbList,studentInfo}
}, {
    //持久存储
    persist: true
})